package com.ttg.common.enums;

import lombok.Getter;

/**
 * Description：
 * Author: chenyou
 * Date: 2025/10/27 9:03
 * Company: ttg
 * Copyright: Copyright (c) 2025
 */
@Getter
public enum TagUpdateFrequencyEnum {

    DAILY("daily","每日更新"),
    WEEKLY("weekly","每周更新"),
    MONTHLY("monthly","每月更新"),
    ;

    TagUpdateFrequencyEnum(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static TagUpdateFrequencyEnum getByVal(String value){
        for (TagUpdateFrequencyEnum curr:TagUpdateFrequencyEnum.values()){
            if(curr.getValue().equals(value)){
                return curr;
            }
        }
        return null;
    }

    private String value;
    private String desc;
}
